home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXTFAttributeHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  164 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXTFAttributeHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXTFAttributeHandler_h__
  6. #define __gen_nsIXTFAttributeHandler_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAtom; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIXTFAttributeHandler */
  21. #define NS_IXTFATTRIBUTEHANDLER_IID_STR "72152f7f-7e8d-43fd-8477-3f29ae8d240d"
  22.  
  23. #define NS_IXTFATTRIBUTEHANDLER_IID \
  24.   {0x72152f7f, 0x7e8d, 0x43fd, \
  25.     { 0x84, 0x77, 0x3f, 0x29, 0xae, 0x8d, 0x24, 0x0d }}
  26.  
  27. class NS_NO_VTABLE nsIXTFAttributeHandler : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXTFATTRIBUTEHANDLER_IID)
  31.  
  32.   /* boolean handlesAttribute (in nsIAtom name); */
  33.   NS_IMETHOD HandlesAttribute(nsIAtom *name, PRBool *_retval) = 0;
  34.  
  35.   /* void setAttribute (in nsIAtom name, in AString newValue); */
  36.   NS_IMETHOD SetAttribute(nsIAtom *name, const nsAString & newValue) = 0;
  37.  
  38.   /* void removeAttribute (in nsIAtom name); */
  39.   NS_IMETHOD RemoveAttribute(nsIAtom *name) = 0;
  40.  
  41.   /* AString getAttribute (in nsIAtom name); */
  42.   NS_IMETHOD GetAttribute(nsIAtom *name, nsAString & _retval) = 0;
  43.  
  44.   /* boolean hasAttribute (in nsIAtom name); */
  45.   NS_IMETHOD HasAttribute(nsIAtom *name, PRBool *_retval) = 0;
  46.  
  47.   /* unsigned long getAttributeCount (); */
  48.   NS_IMETHOD GetAttributeCount(PRUint32 *_retval) = 0;
  49.  
  50.   /* nsIAtom getAttributeNameAt (in unsigned long index); */
  51.   NS_IMETHOD GetAttributeNameAt(PRUint32 index, nsIAtom **_retval) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIXTFATTRIBUTEHANDLER \
  57.   NS_IMETHOD HandlesAttribute(nsIAtom *name, PRBool *_retval); \
  58.   NS_IMETHOD SetAttribute(nsIAtom *name, const nsAString & newValue); \
  59.   NS_IMETHOD RemoveAttribute(nsIAtom *name); \
  60.   NS_IMETHOD GetAttribute(nsIAtom *name, nsAString & _retval); \
  61.   NS_IMETHOD HasAttribute(nsIAtom *name, PRBool *_retval); \
  62.   NS_IMETHOD GetAttributeCount(PRUint32 *_retval); \
  63.   NS_IMETHOD GetAttributeNameAt(PRUint32 index, nsIAtom **_retval); 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  66. #define NS_FORWARD_NSIXTFATTRIBUTEHANDLER(_to) \
  67.   NS_IMETHOD HandlesAttribute(nsIAtom *name, PRBool *_retval) { return _to HandlesAttribute(name, _retval); } \
  68.   NS_IMETHOD SetAttribute(nsIAtom *name, const nsAString & newValue) { return _to SetAttribute(name, newValue); } \
  69.   NS_IMETHOD RemoveAttribute(nsIAtom *name) { return _to RemoveAttribute(name); } \
  70.   NS_IMETHOD GetAttribute(nsIAtom *name, nsAString & _retval) { return _to GetAttribute(name, _retval); } \
  71.   NS_IMETHOD HasAttribute(nsIAtom *name, PRBool *_retval) { return _to HasAttribute(name, _retval); } \
  72.   NS_IMETHOD GetAttributeCount(PRUint32 *_retval) { return _to GetAttributeCount(_retval); } \
  73.   NS_IMETHOD GetAttributeNameAt(PRUint32 index, nsIAtom **_retval) { return _to GetAttributeNameAt(index, _retval); } 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  76. #define NS_FORWARD_SAFE_NSIXTFATTRIBUTEHANDLER(_to) \
  77.   NS_IMETHOD HandlesAttribute(nsIAtom *name, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandlesAttribute(name, _retval); } \
  78.   NS_IMETHOD SetAttribute(nsIAtom *name, const nsAString & newValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttribute(name, newValue); } \
  79.   NS_IMETHOD RemoveAttribute(nsIAtom *name) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAttribute(name); } \
  80.   NS_IMETHOD GetAttribute(nsIAtom *name, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttribute(name, _retval); } \
  81.   NS_IMETHOD HasAttribute(nsIAtom *name, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasAttribute(name, _retval); } \
  82.   NS_IMETHOD GetAttributeCount(PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeCount(_retval); } \
  83.   NS_IMETHOD GetAttributeNameAt(PRUint32 index, nsIAtom **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeNameAt(index, _retval); } 
  84.  
  85. #if 0
  86. /* Use the code below as a template for the implementation class for this interface. */
  87.  
  88. /* Header file */
  89. class nsXTFAttributeHandler : public nsIXTFAttributeHandler
  90. {
  91. public:
  92.   NS_DECL_ISUPPORTS
  93.   NS_DECL_NSIXTFATTRIBUTEHANDLER
  94.  
  95.   nsXTFAttributeHandler();
  96.  
  97. private:
  98.   ~nsXTFAttributeHandler();
  99.  
  100. protected:
  101.   /* additional members */
  102. };
  103.  
  104. /* Implementation file */
  105. NS_IMPL_ISUPPORTS1(nsXTFAttributeHandler, nsIXTFAttributeHandler)
  106.  
  107. nsXTFAttributeHandler::nsXTFAttributeHandler()
  108. {
  109.   /* member initializers and constructor code */
  110. }
  111.  
  112. nsXTFAttributeHandler::~nsXTFAttributeHandler()
  113. {
  114.   /* destructor code */
  115. }
  116.  
  117. /* boolean handlesAttribute (in nsIAtom name); */
  118. NS_IMETHODIMP nsXTFAttributeHandler::HandlesAttribute(nsIAtom *name, PRBool *_retval)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* void setAttribute (in nsIAtom name, in AString newValue); */
  124. NS_IMETHODIMP nsXTFAttributeHandler::SetAttribute(nsIAtom *name, const nsAString & newValue)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* void removeAttribute (in nsIAtom name); */
  130. NS_IMETHODIMP nsXTFAttributeHandler::RemoveAttribute(nsIAtom *name)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* AString getAttribute (in nsIAtom name); */
  136. NS_IMETHODIMP nsXTFAttributeHandler::GetAttribute(nsIAtom *name, nsAString & _retval)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* boolean hasAttribute (in nsIAtom name); */
  142. NS_IMETHODIMP nsXTFAttributeHandler::HasAttribute(nsIAtom *name, PRBool *_retval)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* unsigned long getAttributeCount (); */
  148. NS_IMETHODIMP nsXTFAttributeHandler::GetAttributeCount(PRUint32 *_retval)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* nsIAtom getAttributeNameAt (in unsigned long index); */
  154. NS_IMETHODIMP nsXTFAttributeHandler::GetAttributeNameAt(PRUint32 index, nsIAtom **_retval)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* End of implementation class template. */
  160. #endif
  161.  
  162.  
  163. #endif /* __gen_nsIXTFAttributeHandler_h__ */
  164.